billing-ux

(0 reviews)

TMF 666 GET - Billing Account

Retrieve Customer Information from CSG

This operation is to retrieve Customer Information from CSG by account number.

URL
https://[localhost]:[port]/billing-ux/v1/{businessId}/accountManagement/billingAccount/{id}
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API requestY
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/billing-ux/v1/PR/accountManagement/billingAccount/8011223345612345' \
--header 'X-Correlation-ID: {guid}' \
--header 'client_id: xxxx' \
--header 'client_secret: xxxx'
Response
{
    "id": "8011223345612345",
    "name": "Carlos Rivera",
    "relatedParty": [
        {
            "id": "xthMGP1OxYQEa08Azr1Kfw==",
            "name": "Carlos Rivera",
            "@referredType": "Individual"
        }
    ],
    "contact": [
        {
            "contactType": "primary",
            "contactMedium": [
                {
                    "mediumType": "GeographicAddress",
                    "characteristic": {
                        "contactType": "PhysicalAddress",
                        "street1": "123 Calle San Sebastián",
                        "street2": "Apt 4B",
                        "postCode": "00901",
                        "city": "San Juan",
                        "stateOrProvince": "PR"
                    }
                },
                {
                    "mediumType": "PhoneNumber",
                    "characteristic": {
                        "contactType": "Phone1",
                        "phoneNumber": "7879257002"
                    }
                },
                {
                    "mediumType": "PhoneNumber",
                    "characteristic": {
                        "contactType": "Phone2",
                        "phoneNumber": "7879257003"
                    }
                }
            ]
        },
        {
            "contactType": "secondary",
            "contactMedium": [
                {
                    "mediumType": "GeographicAddress",
                    "characteristic": {
                        "contactType": "BillingAddress",
                        "street1": "456 Avenida Ponce de León",
                        "street2": "Suite 210",
                        "postCode": "00909",
                        "city": "San Juan",
                        "stateOrProvince": "PR"
                    }
                }
            ]
        }
    ],
    "characteristic": [
        {
            "value": "1985-07-15",
            "valueType": "date",
            "name": "date_of_birth"
        },
        {
            "value": "10",
            "valueType": "string",
            "name": "non_pay_days"

        }
    ]
}
Definitions

Each of the response parameters is detailed.

nametypedescriptionrequired
idstringCustomer account numberY
namestringCustomer nameY
relatedPartyarrayRelated Entity referenceY
relatedParty[].idstringEncrypted SSNY
relatedParty[].namestringCustomer nameY
relatedParty[].@referredTypestringThe actual type of the target instance when needed for disambiguationY
contactarrayAn individual or an organization used as a contact point for a given accountY
contact[].contactTypestringType of contact (primary, secondary...)N
contact[].contactMedium[].mediumTypestringType of the contact mediumN
contact[].contactMedium[].characteristicobjectIndicates the contact medium that could be used to contact the party.N
contact[].contactMedium[].characteristic.contactTypestringDescribes the contact medium typeN
contact[].contactMedium[].characteristic.street1stringDescribes the streetN
contact[].contactMedium[].characteristic.street2stringComplementary street descriptionN
contact[].contactMedium[].characteristic.postCodestringPost CodeN
contact[].contactMedium[].characteristic.citystringThe cityN
contact[].contactMedium[].characteristic.stateOrProvincestringState or provinceN
contact[].contactMedium[].characteristic.phoneNumberstringCustomer Phone NumberN
characteristicarrayExtended characteristicN

charactereristics:

characteristic nametypedescription
date_of_birthdate(yyyy-mm-dd)Date of birth of the customer
non_pay_daysstringNumber of non-payment days a customer had in the past 12 months
Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The server could not find the requested resource.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method POST not allowed for : /{businessId}/accountManagement/billingAccount/{id}"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error"
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /accountManagement/billingAccount/{id} for Business Id: xxxx not implemented"
    }]
  }

Reviews